package com.cti.ftpservice.job;


import java.util.Date;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.FtpService;


@Component("ftpDownLoadJob")
public class FtpDownLoadJob {

	private static Log log = LogFactory.getLog(FtpDownLoadJob.class);
	
	@Resource
	private FtpService ftpService;
	
	public void  doWork() {
		log.info("从Ftp服务器下载文件开始"+new Date().toString());
		ftpService.downloadFilesFromFtpServices();
		
	}
}
